package com.hb.trans.mvp.contract

import com.basiclib.inter.IModel
import com.basiclib.inter.IMvpView
import com.hb.trans.bean.Base
import com.hb.trans.bean.Update
import com.hb.trans.bean.VersionInfo
import io.reactivex.Observable

interface UserCenterContract {

    interface View : IMvpView {
        fun setGetById(data: Update?)
        fun updateInfo(version: VersionInfo?)
    }


    interface Model : IModel {
        fun getById(): Observable<Base<Update>>
        fun checkUpdate(): Observable<Base<VersionInfo>>
    }
}